package com.Hermes.NSP;

import it.unisa.dia.gas.jpbc.Element;

import java.math.BigInteger;

public class EncVec {
    private final Element[] Evec = new Element[2];
    private  BigInteger H1S;
    private  BigInteger H1D;//node序号
    EncVec(EncNode s, EncNode d) {
        H1S = s.getId();
        H1D = d.getId();
        Evec[0] = s.getEx().getImmutable().div(d.getEx().duplicate()).getImmutable();
        Evec[1] = s.getEy().getImmutable().div(d.getEy().duplicate()).getImmutable();
    }

    EncVec(Element s,Element d){
        Evec[0]=s.getImmutable();
        Evec[1]=d.getImmutable();
    }

    public Element[] getEvec() {
        return Evec;
    }
}
